Integrand size = 87, antiderivative size = 113 \[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=-\frac {\sqrt {b-\sqrt {b^2-4 a c}} \left (b+\sqrt {b^2-4 a c}\right ) E\left (\arcsin \left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )|\frac {b-\sqrt {b^2-4 a c}}{b+\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c}} \]
-1/2*EllipticE(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2),((b-(-4*a*c+ b^2)^(1/2))/(b+(-4*a*c+b^2)^(1/2)))^(1/2))*(b+(-4*a*c+b^2)^(1/2))*(b-(-4*a *c+b^2)^(1/2))^(1/2)*2^(1/2)/c^(1/2)
Result contains complex when optimal does not.
Time = 2.42 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.92 \[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=-2 i \sqrt {2} a \sqrt {\frac {c}{-b+\sqrt {b^2-4 a c}}} E\left (i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{-b+\sqrt {b^2-4 a c}}} x\right )|\frac {b-\sqrt {b^2-4 a c}}{b+\sqrt {b^2-4 a c}}\right ) \]
Integrate[(-b - Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(Sqrt[1 + (2*c*x^2)/(-b - Sqr t[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(-b + Sqrt[b^2 - 4*a*c])]),x]
(-2*I)*Sqrt[2]*a*Sqrt[c/(-b + Sqrt[b^2 - 4*a*c])]*EllipticE[I*ArcSinh[Sqrt [2]*Sqrt[c/(-b + Sqrt[b^2 - 4*a*c])]*x], (b - Sqrt[b^2 - 4*a*c])/(b + Sqrt [b^2 - 4*a*c])]
Time = 0.32 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.023, Rules used = {281, 327}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {-\sqrt {b^2-4 a c}-b+2 c x^2}{\sqrt {\frac {2 c x^2}{-\sqrt {b^2-4 a c}-b}+1} \sqrt {\frac {2 c x^2}{\sqrt {b^2-4 a c}-b}+1}} \, dx\) |
\(\Big \downarrow \) 281 |
\(\displaystyle -\left (\left (\sqrt {b^2-4 a c}+b\right ) \int \frac {\sqrt {1-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}}}{\sqrt {1-\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}}}dx\right )\) |
\(\Big \downarrow \) 327 |
\(\displaystyle -\frac {\sqrt {b-\sqrt {b^2-4 a c}} \left (\sqrt {b^2-4 a c}+b\right ) E\left (\arcsin \left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )|\frac {b-\sqrt {b^2-4 a c}}{b+\sqrt {b^2-4 a c}}\right )}{\sqrt {2} \sqrt {c}}\) |
Int[(-b - Sqrt[b^2 - 4*a*c] + 2*c*x^2)/(Sqrt[1 + (2*c*x^2)/(-b - Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^2)/(-b + Sqrt[b^2 - 4*a*c])]),x]
-((Sqrt[b - Sqrt[b^2 - 4*a*c]]*(b + Sqrt[b^2 - 4*a*c])*EllipticE[ArcSin[(S qrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]], (b - Sqrt[b^2 - 4*a*c])/(b + Sqrt[b^2 - 4*a*c])])/(Sqrt[2]*Sqrt[c]))
3.1.55.3.1 Defintions of rubi rules used
Int[(u_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_ Symbol] :> Simp[(b/d)^p Int[u*(c + d*x^n)^(p + q), x], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && EqQ[b*c - a*d, 0] && IntegerQ[p] && !(IntegerQ[q] & & SimplerQ[a + b*x^n, c + d*x^n])
Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[ (Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*EllipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d) )], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(2537\) vs. \(2(92)=184\).
Time = 3.72 (sec) , antiderivative size = 2538, normalized size of antiderivative = 22.46
int((2*c*x^2-(-4*a*c+b^2)^(1/2)-b)/(1+2*c*x^2/(-b-(-4*a*c+b^2)^(1/2)))^(1/ 2)/(1+2*c/(-b+(-4*a*c+b^2)^(1/2))*x^2)^(1/2),x,method=_RETURNVERBOSE)
1/2*(-2*c*x^2+(-4*a*c+b^2)^(1/2)+b)*((-2*c*x^2+(-4*a*c+b^2)^(1/2)+b)*(2*c* x^2+(-4*a*c+b^2)^(1/2)-b)*(4*a*c-b^2)/a/c)^(1/2)*(-(2*c*x^2+(-4*a*c+b^2)^( 1/2)-b)*(-2*c*x^2+(-4*a*c+b^2)^(1/2)+b)/a/c)^(1/2)/((-2*c*x^2+(-4*a*c+b^2) ^(1/2)+b)/(b+(-4*a*c+b^2)^(1/2)))^(1/2)/((2*c*x^2+(-4*a*c+b^2)^(1/2)-b)/(- b+(-4*a*c+b^2)^(1/2)))^(1/2)/(-2*((-2*c*x^2+(-4*a*c+b^2)^(1/2)+b)*(2*c*x^2 +(-4*a*c+b^2)^(1/2)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a*c+b^2)^(5/2)-(-4*a*c+b^2)^(3/2)*b^2+16*a^2*b*c...
Leaf count of result is larger than twice the leaf count of optimal. 369 vs. \(2 (92) = 184\).
Time = 0.11 (sec) , antiderivative size = 369, normalized size of antiderivative = 3.27 \[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=\frac {2 \, \sqrt {\frac {1}{2}} {\left (a c x \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + a b x\right )} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b}{c}} \sqrt {\frac {c}{a}} E(\arcsin \left (\frac {\sqrt {\frac {1}{2}} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b}{c}}}{x}\right )\,|\,-\frac {b c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b^{2} + 2 \, a c}{2 \, a c}) + \sqrt {\frac {1}{2}} {\left (\sqrt {b^{2} - 4 \, a c} b x - {\left (2 \, a b - b^{2}\right )} x - {\left ({\left (2 \, a + b\right )} c x + \sqrt {b^{2} - 4 \, a c} c x\right )} \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}}\right )} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b}{c}} \sqrt {\frac {c}{a}} F(\arcsin \left (\frac {\sqrt {\frac {1}{2}} \sqrt {\frac {c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} + b}{c}}}{x}\right )\,|\,-\frac {b c \sqrt {\frac {b^{2} - 4 \, a c}{c^{2}}} - b^{2} + 2 \, a c}{2 \, a c}) + 2 \, a c \sqrt {-\frac {b x^{2} + \sqrt {b^{2} - 4 \, a c} x^{2} - 2 \, a}{a}} \sqrt {-\frac {b x^{2} - \sqrt {b^{2} - 4 \, a c} x^{2} - 2 \, a}{a}}}{2 \, c x} \]
integrate((-b+2*c*x^2-(-4*a*c+b^2)^(1/2))/(1+2*c*x^2/(-b-(-4*a*c+b^2)^(1/2 )))^(1/2)/(1+2*c*x^2/(-b+(-4*a*c+b^2)^(1/2)))^(1/2),x, algorithm="fricas")
1/2*(2*sqrt(1/2)*(a*c*x*sqrt((b^2 - 4*a*c)/c^2) + a*b*x)*sqrt((c*sqrt((b^2 - 4*a*c)/c^2) + b)/c)*sqrt(c/a)*elliptic_e(arcsin(sqrt(1/2)*sqrt((c*sqrt( (b^2 - 4*a*c)/c^2) + b)/c)/x), -1/2*(b*c*sqrt((b^2 - 4*a*c)/c^2) - b^2 + 2 *a*c)/(a*c)) + sqrt(1/2)*(sqrt(b^2 - 4*a*c)*b*x - (2*a*b - b^2)*x - ((2*a + b)*c*x + sqrt(b^2 - 4*a*c)*c*x)*sqrt((b^2 - 4*a*c)/c^2))*sqrt((c*sqrt((b ^2 - 4*a*c)/c^2) + b)/c)*sqrt(c/a)*elliptic_f(arcsin(sqrt(1/2)*sqrt((c*sqr t((b^2 - 4*a*c)/c^2) + b)/c)/x), -1/2*(b*c*sqrt((b^2 - 4*a*c)/c^2) - b^2 + 2*a*c)/(a*c)) + 2*a*c*sqrt(-(b*x^2 + sqrt(b^2 - 4*a*c)*x^2 - 2*a)/a)*sqrt (-(b*x^2 - sqrt(b^2 - 4*a*c)*x^2 - 2*a)/a))/(c*x)
\[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=\int \frac {- b + 2 c x^{2} - \sqrt {- 4 a c + b^{2}}}{\sqrt {\frac {- b + 2 c x^{2} - \sqrt {- 4 a c + b^{2}}}{- b - \sqrt {- 4 a c + b^{2}}}} \sqrt {\frac {- b + 2 c x^{2} + \sqrt {- 4 a c + b^{2}}}{- b + \sqrt {- 4 a c + b^{2}}}}}\, dx \]
integrate((-b+2*c*x**2-(-4*a*c+b**2)**(1/2))/(1+2*c*x**2/(-b-(-4*a*c+b**2) **(1/2)))**(1/2)/(1+2*c*x**2/(-b+(-4*a*c+b**2)**(1/2)))**(1/2),x)
Integral((-b + 2*c*x**2 - sqrt(-4*a*c + b**2))/(sqrt((-b + 2*c*x**2 - sqrt (-4*a*c + b**2))/(-b - sqrt(-4*a*c + b**2)))*sqrt((-b + 2*c*x**2 + sqrt(-4 *a*c + b**2))/(-b + sqrt(-4*a*c + b**2)))), x)
\[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=\int { \frac {2 \, c x^{2} - b - \sqrt {b^{2} - 4 \, a c}}{\sqrt {-\frac {2 \, c x^{2}}{b + \sqrt {b^{2} - 4 \, a c}} + 1} \sqrt {-\frac {2 \, c x^{2}}{b - \sqrt {b^{2} - 4 \, a c}} + 1}} \,d x } \]
integrate((-b+2*c*x^2-(-4*a*c+b^2)^(1/2))/(1+2*c*x^2/(-b-(-4*a*c+b^2)^(1/2 )))^(1/2)/(1+2*c*x^2/(-b+(-4*a*c+b^2)^(1/2)))^(1/2),x, algorithm="maxima")
integrate((2*c*x^2 - b - sqrt(b^2 - 4*a*c))/(sqrt(-2*c*x^2/(b + sqrt(b^2 - 4*a*c)) + 1)*sqrt(-2*c*x^2/(b - sqrt(b^2 - 4*a*c)) + 1)), x)
\[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=\int { \frac {2 \, c x^{2} - b - \sqrt {b^{2} - 4 \, a c}}{\sqrt {-\frac {2 \, c x^{2}}{b + \sqrt {b^{2} - 4 \, a c}} + 1} \sqrt {-\frac {2 \, c x^{2}}{b - \sqrt {b^{2} - 4 \, a c}} + 1}} \,d x } \]
integrate((-b+2*c*x^2-(-4*a*c+b^2)^(1/2))/(1+2*c*x^2/(-b-(-4*a*c+b^2)^(1/2 )))^(1/2)/(1+2*c*x^2/(-b+(-4*a*c+b^2)^(1/2)))^(1/2),x, algorithm="giac")
integrate((2*c*x^2 - b - sqrt(b^2 - 4*a*c))/(sqrt(-2*c*x^2/(b + sqrt(b^2 - 4*a*c)) + 1)*sqrt(-2*c*x^2/(b - sqrt(b^2 - 4*a*c)) + 1)), x)
Timed out. \[ \int \frac {-b-\sqrt {b^2-4 a c}+2 c x^2}{\sqrt {1+\frac {2 c x^2}{-b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}}} \, dx=\int -\frac {b-2\,c\,x^2+\sqrt {b^2-4\,a\,c}}{\sqrt {1-\frac {2\,c\,x^2}{b-\sqrt {b^2-4\,a\,c}}}\,\sqrt {1-\frac {2\,c\,x^2}{b+\sqrt {b^2-4\,a\,c}}}} \,d x \]
int(-(b - 2*c*x^2 + (b^2 - 4*a*c)^(1/2))/((1 - (2*c*x^2)/(b - (b^2 - 4*a*c )^(1/2)))^(1/2)*(1 - (2*c*x^2)/(b + (b^2 - 4*a*c)^(1/2)))^(1/2)),x)